package com.redbudcloud.distributenetwork.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;
import com.redbudcloud.common.JsonUtil;

/**
 * Created by zhxiaotong on 17-12-17.
 */
@Controller
@RequestMapping("user")
public class UserController {
    Logger logger = Logger.getLogger(UserController.class);

    @ResponseBody
    @RequestMapping (value = "/login", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public String login (@RequestParam (value = "loginName") String loginName,
                         @RequestParam (value = "password") String password){
        String res = "";
        Map m = new HashMap();
        m.put("resCode",0);
        m.put("result","");
        res = JsonUtil.getMap4Json(m);
        return res;
    }
}
